package 水果;

public class FruitTest {
    public static void main(String[] args) {

        Fruit fruit = new Fruit();
        fruit.setName("苹果");
        fruit.setOrigin("昭通");
        fruit.setPrice(0);
        System.out.println(fruit);


        Fruit fruit1 = new Fruit();
        fruit1.setName("香蕉");
        fruit1.setOrigin("海南");
        fruit1.setPrice(0);
        System.out.println(fruit1);


        Fruit fruit2 = new Fruit();
        fruit2.setName("梨");
        fruit2.setOrigin("陕西");
        fruit2.setPrice(0);
        System.out.println(fruit2);




    }
}
